﻿@{
    ViewBag.Title = "Role Listing";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Role Index</h2>

@Html.ActionLink("Create New Role", "RoleCreate") | @Html.ActionLink("Add Role to User", "RoleAddToUser")

<table border="0">
    <tr>
        <th>Role Name</th>
        <th></th>
    </tr>
    @foreach (string s in Model)
    {
        <tr>
            <td>@s</td>
            <td>
                <span onclick="return confirm('Are you sure to delete?')">
                    <a href="/Admin/RoleDelete?RoleName=@s" class="delLink">
                        <img src="/images/delete_icon.png" alt="Delete" class="imgBorder0" style="max-height:18px"/></a>
                </span>
            </td>
        </tr>
    }
</table>

